package engine.display;

import java.awt.Color;
import engine.Game;

/**
 * This is the class responsible for displaying status messages on the screen.
 * 
 * @author Kyle_Solo
 */
public class Messenger implements Displayable {
	private String message = "";

	/**
	 * Default constructor for Messenger
	 */
	public Messenger() {
		Game.display.add(this);
	}

	@Override
	public void render() {
		Game.display.drawString(0, 0, message, Color.white, Color.black);
	}

	/**
	 * @param message
	 *            a string message
	 */
	public void sendMessage(String message) {
		this.message = message;
	}
}